package com.zc58s.springjvm.jvm;

/**
 * @author : fujc-dev@qq.com
 * @created : 2022/9/7 9:03
 */

public class App {

    public static void main(String[] args) {
        App app = new App();
        int result = app.add();
        System.out.println(result);
    }

    /**
     * 计算方法
     * <p>
     * 局部变量、一个方法为一个栈帧
     * </p>
     *
     * @return int
     */
    private int add() {
        int a = 1;
        int b = 2;
        int c = (a + b) * 100;
        return c;
    }
}
